package com.lucaswangdev.logindemo.constant.common;

public class ErrorConstants {
    public final static ErrorInfo SYSTEM_ERROR = new ErrorInfo("SYSTEM_ERROR", "系统异常");

    public final static ErrorInfo CREATE_ERROR = new ErrorInfo("CREATE_ERROR", "新增失败");
    public final static ErrorInfo UPDATE_ERROR = new ErrorInfo("UPDATE_ERROR", "更新失败");
    public final static ErrorInfo DELETE_ERROR = new ErrorInfo("DELETE_ERROR", "删除失败");
    public final static ErrorInfo QUERY_ERROR = new ErrorInfo("QUERY_ERROR", "查询失败");
    public final static ErrorInfo NOT_FOUND_BY_ID = new ErrorInfo("NOT_FOUND_BY_ID", "根据id没有查询到记录");

    public final static ErrorInfo PARAM_ERROR = new ErrorInfo("PARAM_ERROR", "参数错误");

}
